import request from '@/utils/request'

// 查询音乐创作人关联列表
export function listMusicCreatorLink(query) {
  return request({
    url: '/music/musicCreatorLink/list',
    method: 'get',
    params: query
  })
}

// 查询音乐创作人关联详细
export function getMusicCreatorLink(id) {
  return request({
    url: '/music/musicCreatorLink/' + id,
    method: 'get'
  })
}

// 新增音乐创作人关联
export function addMusicCreatorLink(data) {
  return request({
    url: '/music/musicCreatorLink',
    method: 'post',
    data: data
  })
}

// 修改音乐创作人关联
export function updateMusicCreatorLink(data) {
  return request({
    url: '/music/musicCreatorLink',
    method: 'put',
    data: data
  })
}

// 删除音乐创作人关联
export function delMusicCreatorLink(id) {
  return request({
    url: '/music/musicCreatorLink/' + id,
    method: 'delete'
  })
}
